
// console.log(8765, location, localStorage.getItem('asdasd'))

console.log('nsjd', chrome, chrome.runtime.onMessage.addListener)
chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
    console.log('$on', request)
    localStorage.setItem('token', request.token)
    sendResponse()
    return true
})

document.body.addEventListener('click', function() {
    console.log(22, chrome.runtime)
    chrome.runtime.sendMessage({
        'asdasd': 'asdasd123'
    }, function(sendResponse) {
        console.log('$send', sendResponse)
    })
})

